export interface RegisterParams {
    userAccount: string,
    userName: string,
    userPassword: string,
}

export interface RegisterResultModel {
    token: string
}

export function registerApi(params: RegisterParams) {
    console.log('register')
    let data: RegisterParams = {
        userAccount: params.userAccount,
        userName: params.userName,
        userPassword: params.userPassword,
    }
    return usePost<RegisterResultModel, RegisterParams>('/user/registerUser', data,{
        token: false,
        customDev: true,
    })
}